package com.rustic.server.query;

import cn.xy.base.server.bean.IPage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * 表[user]对应Query查询类
 *
 * @author auto
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserQuery extends IPage {

    /**
     * 用户名
     */
    @Length(min = 1, max = 64, message = "用户名长度为1-30个字符")
    @ApiModelProperty(value = "用户名", dataType = "String")
    private String username;

    /**
     * 手机号码
     */
    @Length(min = 1, max = 20, message = "手机号码长度为1-30个字符")
    @ApiModelProperty(value = "手机号码", dataType = "String")
    private String mobile;

    /**
     * 是否锁定
     */
    @ApiModelProperty(value = "是否锁定", dataType = "String")
    private String isLock;

}
